package models

var (
	WechatReplyStatus map[int]string
	WechatReplyType   map[int]string
)

// 微信被动回复消息
type WechatReply struct {
	Id         int64  `orm:"description(自增主键)"`
	Type       int    `orm:"description(类型 0未知 1文本 2图片)"`
	TypeShow   string `orm:"-"`
	Keyword    string `orm:"description(关键字)"`
	Text       string `orm:"type(text);null;description(回复文本内容)"`
	MediaId    string `orm:"type(text);null;description(素材id)"`
	MediaUrl   string `orm:"type(text);null;description(素材地址，无法直接访问)"`
	LocalUrl   string `orm:"type(text);null;description(图片地址，可以直接访问)"`
	Status     int    `orm:"description(状态 0禁用 1正常)"`
	StatusShow string `orm:"-"`
}

func init() {

	WechatReplyStatus = map[int]string{
		0: "禁用",
		1: "正常",
	}

	WechatReplyType = map[int]string{
		0: "未知",
		1: "文本",
		2: "图片",
	}

}
